package com.test.day04.reader;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @program: 续写和换行,使用两个参数的构造方法     第二个参数(true,false)
 * @author: luhd
 * @create: 2021-08-07
 */
public class Demo04Writer {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("e.txt",true);
        for (int i = 0; i < 10; i++) {
            fw.write("helloworld"+i+"\r\n");
        }
        fw.close();
    }
}
